<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            background-color: pink;
            background-image: url(images/login.webp);
            width: 250px;
            height: 250px;
            background-repeat: no-repeat;
            /* 精确的时候前后有顺序,前面是x轴的坐标,后面是y轴的坐标 */
            background-position: 15px 30px;
            /* 也i可以用混合的-也是先x后y坐标 */
            /* 背景图像固定 */
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>